package com.travel.travelnetwork.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.travel.travelnetwork.pojo.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper extends BaseMapper<Role> {
    // 查询用户拥有的所有角色的id
    List<Integer> findRoleIdByAdmin(Integer aid);

    void deleteRoleByPermission(Integer rid);

    void addRoleToPermission(@Param("rid") Integer rid, @Param("pid")Integer pid);
}
